package cn.wolfcode.trip.base.util;

import cn.wolfcode.trip.base.domain.User;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

//抽取一个JSON结果的类
@Setter@Getter@ToString
public class JSONResult {
    //设置两个属性,布尔值的成功还有String类型的信息
    //默认为true
    private boolean success=true;
    private String msg;
    private Object data;
    //写一个方法,一调用这个方法证明不成功
    public void  mark(String msg){
        this.success=false;
        this.msg=msg;
    }
}
